<template>
  <div id="app">
    <el-scrollbar style="height:100%" >
      <router-view v-if="isRouterAlive"/>
    </el-scrollbar>
  </div>
</template>

<script>
export default{
  name: 'App',
  provide() {
    return {
      reload: this.reload
    }
  },
  data() {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reload() {
      this.isRouterAlive = false
      this.$nextTick(function() {
        this.isRouterAlive = true
      })
    }
  }
}
</script>
<style lang="scss">
  #app>.el-scrollbar>.el-scrollbar__wrap {
    overflow-x: hidden;
  }
  .app-iframe-container {
    padding: 10px;
    height: 100%;
    overflow: auto;
  }

  .row-title {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
  }

  .row-title h2 {
    color: #409eff;
    font-size: 20px;
    line-height: 20px;
    font-weight: bolder;
    border-left: 2px solid #409eff;
    padding-left: 10px;
    margin-right: 20px;
  }

  .row-title h1 {
    color: #555c66;
    font-size: 25px;
    line-height: 25px;
    font-weight: bolder;
    border-left: 2px solid #409eff;
    padding-left: 10px;
    margin-right: 20px;
  }

  .row-title h3 {
    font-size: 15px;
    line-height: 15px;
    font-weight: bolder;
    padding-left: 10px;
    margin-right: 20px;
  }
  .row-title h4 {
    color: #000000;
    font-size: 10px;
    line-height: 10px;
    font-weight: bolder;
    border-left: 2px solid #409eff;
    padding-left: 10px;
    margin-right: 20px;
  }

  .app-iframe-container .top-15 {
    margin-top: 15px;
  }

  .app-iframe-container .top-10 {
    margin-top: 10px;
  }
  .app-iframe-container .top-1em {
    margin-top: 1em;
  }
  .app-iframe-container .table-wrapper {
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 2px 3px 0 #ddd;
  }

  .app-iframe-container .choose-input .el-input  {
    width: 99%;
  }
  .app-iframe-container .el-select  {
    width: 99%;
  }
  .app-iframe-container .el-date-editor {
    width: 99%;
  }
  .app-iframe-container .el-cascader{
    width: 99%;
  }

  .app-iframe-container .table-container{
    margin-top: 10px;
  }

  .app-iframe-container .table-container .table-data{
    width: 100%;
    min-height: 300px;
    max-height: 400px
  }

  .app-iframe-container .table-container .table-data td, .app-iframe-container .table-container .table-data th {
    padding: 6px 0px
  }

  .app-iframe-container .seconder-button-container{
    text-align: center;
  }
  .row-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
  }
  .app-iframe-container {
    .tips {
      margin-bottom: 10px;
      .green {
        color: #67c23a;
      }
      .blue {
        color: #409eff;
      }
      .red {
        color: #f56c6c;
      }
      .gray {
        color: #8c939d;
      }
    }
  }
  .el-carousel__indicator{
    display: none !important;
  }
</style>
